import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import ContactUsView from '@/views/ContactUsView.vue'
import MyShelvesView from '@/views/MyShelvesView.vue'
import LoginView from '@/views/LoginView.vue'
import RegisterView from '@/views/RegisterView.vue'
import BurglaryProofDoorView from '@/views/BurglaryProofDoorView.vue'
import HomeRollerDoorView from '@/views/HomeRollerDoorView.vue'
import FoodCartView from '@/views/FoodCartView.vue'
import ProductInterfaceView from '@/views/ProductInterfaceView.vue'
import WareHouseView from '@/components/WareHouseView.vue'
import IncomeManageView from '@/views/IncomeManageView.vue'
import OutgoingManageView from '@/views/OutgoingManageView.vue'
import InventoryManageView from '@/views/InventoryManageView.vue'
import RecentNewsView from '@/views/RecentNewsView.vue'
import StudentView from '@/views/StudentView.vue'
import SubmitView from '@/views/SubmitView.vue'
import ReceiveView from '@/views/ReceiveView.vue'
import JudegView from '@/views/JudegView.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/ContactUsView/:userid/',
    name: 'contact',
    component: ContactUsView
  },
  {
    path: '/MyShelvesView/',
    name: 'myshelves',
    component: MyShelvesView
  },
  {
    path: '/LoginView/',
    name: 'login',
    component: LoginView
  },
  {
    path: '/RegisterView/',
    name: 'register',
    component: RegisterView
  },
  {
    path: '/BurglaryProofDoorView/',
    name: 'burglaryproofdoor',
    component: BurglaryProofDoorView
  },
  {
    path: '/HomeRollerDoorView/',
    name: 'homerollerdoor',
    component: HomeRollerDoorView
  },
  {
    path: '/FoodCartView/',
    name: 'foodcart',
    component: FoodCartView
  },
  {
    path: '/ProductInterfaceView/:producename/',
    name: 'productinterface',
    component: ProductInterfaceView
  },
  {
    path: '/WareHouseView/',
    name: 'warehouse',
    component: WareHouseView
  },
  {
    path: '/IncomeManageView/',
    name: 'incomemanage',
    component: IncomeManageView
  },
  {
    path: '/OutgoingManageView/',
    name: 'outgoingmanage',
    component: OutgoingManageView
  },
  {
    path: '/InventoryManageView/',
    name: 'inventorymanage',
    component: InventoryManageView
  },
  {
    path: '/RecentNewsView/',
    name: 'recentnews',
    component: RecentNewsView
  },
  {
    path: '/StudentView/',
    name: 'student',
    component: StudentView
  },
  {
    path: '/SubmitView/',
    name: 'submit',
    component: SubmitView
  },
  {
    path: '/ReceiveView/',
    name: 'receive',
    component: ReceiveView
  },
  {
    path: '/JudegView/',
    name: 'judge',
    component: JudegView
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
